#import <Foundation/Foundation.h>
#import "Building.h"
#import "BuildingCollection.h"

/**
 * A ParsingUtilities is an object representing the generic
 * parsing functionality needed for the application.
 *
 * @author      Justin Hollander
 * @version     0.2.6
 * @since       0.2.6
 */
@interface ParsingUtilities : NSObject

/**
 * Attempts to match a given text with a range of valid subtext.
 *
 * @param subrange   the range of subtext to match
 * @param eventDesc  the text to use as a source
 * @return           whether the match is a success
 */
+(Building*)parseBuildingFromString:(NSString*)textString;

/**
 * Parse a building name out of a given string of text.
 *
 * @param textString  the source string of text
 * @return            the building if found
 */
+(BOOL) isMatchByRange:(NSRange)subrange eventDesc:(NSString*)eventDesc;

@end
